package com.zhdj.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhdj.dao.MasterDAOI;
import com.zhdj.entity.MasterEntity;
import com.zhdj.service.MasterService;
@Service
public class MasterImpl implements MasterService {
	@Autowired
	private MasterDAOI daoi;
	

	@Override
	public MasterEntity login(String mname, String mpsw) {
		MasterEntity master=new MasterEntity();
		master.setMname(mname);
		master.setMpsw(mpsw);
		return this.daoi.login(master);
	}

	@Override
	public int find(String mname) {
		
		MasterEntity master=new MasterEntity();
		master.setMname(mname);
		return this.daoi.repeat(master);
	}


	

	


}
